package com.xms.sdk.core.query;

import java.io.Serializable;

/**
 * <p>
 * LogicalOperator
 * </p>
 *
 * @author migo
 * @since 2021/9/1
 */
public enum LogicalOperator implements Serializable {
    And(0, "and"),
    Or(1, "or");

    LogicalOperator(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean equals(LogicalOperator compared){
        return this.value() == compared.value();
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
